package com.wtp.wallpaper.es.Repository;

import com.wtp.wallpaper.es.document.Product;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;


public interface ProductRepository extends ElasticsearchRepository<Product, String> {

    // 根据名称模糊查询
    List<Product> findByNameContaining(String name);
}
